require "pry-byebug"

def some_method
  a = 1
  binding.pry   # 程序会在这里暂停
  b = 2
  puts a + b
end

# 调用方法
some_method